<title>About this tool:</title>
This tool helps with calculating the load capacitors for a crystal oscillator circuit. Two inputs are needed: the load capacitance and the stray capacitance. The load capacitance is listed in the datasheet of the crystal. And the stray capacitance depends on the actual PCB layout, but since the crystal is mostly placed very close to the microcontroller we can guess it. It is mostly in the range of a few pF.

The following formula is used to calculate the results. It describes that the total load capacitance of the oscillator circuit is the sum of all capacitances. Results for symmetric capacitance (C1 = C2) and for the asymmetric use case (not always available) are provided.

<_image>Calc6Sub10_pic03.png</_image>

Equivalent circuit diagram of a crystal oscillator:
<_image>Calc6Sub10_pic02.png</_image>

C0: Holder (shunt) capacitance
LM: Motion inductance
RM: Series resistance
CM: Motion capacitance

Hint: if you want to measure the frequency of the crystal using an oscilloscope, don't measure with the oscilloscope probe directly on C1 or C2 because this would add the probes capacitance to the total capacitance of the oscillator circuit (unless you are using a FET probe). A good way to measure the frequency accurately is to add a 1pF capacitor between the crystal pin and the oscilloscope probe to minimize the probes effect on the circuit.

When selecting a crystal, make sure that its tolerance matches the desired accuracy. Also make sure that it can operate stable over the specified temperature range.

There are several parameters (±ppm) that affect the frequency tolerance. Here are the most important:
• Tolerance at room temperature
• Deviation over the operating temperature range
• Aging of the crystal over its lifetime
